from google.appengine.ext import db

class Product(db.Model):
  productId = db.IntegerProperty()
  url = db.LinkProperty()
  title = db.StringProperty()
  gmtCreate = db.DateTimeProperty(auto_now_add=True)
  size = db.IntegerProperty()
  picture = db.BlobProperty(default=None)

class BackupHistory(db.Model):
  site = db.LinkProperty(required=True)
  gmtCreate = db.DateTimeProperty(auto_now_add=True)
  size = db.IntegerProperty(default=0)
  count = db.IntegerProperty(default=0)